package com.zijin.exec;

import java.util.Scanner;

public class Text08 {
    public static void main(String[] args) {
        Scanner input =new Scanner(System.in);
        System.out.println("请输入年份");
        int year = input.nextInt();
        System.out.println("请输入月份");
        int month = input.nextInt();
        System.out.println("请输入天数");
        int day = input.nextInt();

        int[] monthDays = {31,28,31,30,31,30,31,31,30,31,30,31};
        if((year%4 == 0 && year % 100 != 0) || (year % 400 == 0)){
            monthDays[1]=29;
        }
        int days = 0;
        for(int i = 0;i < month-1;i++){
            days += monthDays[i];
        }
        days += day;
        System.out.println(year+"年"+month+"月"+day+"日"+"是第"+days+"天");
    }
}
